import { defineStore } from 'pinia';

export const useUserInfo = defineStore('userInfo', {
    state: () => {
        return {
            userinfo: {
                userName: ''
            }
        }
    },
    actions: {},
    persist: {
        enabled: true,
        strategies: [{
            storage: localStorage,
            paths: ['userinfo']
        }]
    }
})